<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> <%@include file="common/dev_header.jsp"%>

<div class="content-wrapper">
	<div class="page-title">
		<div>
			<h3>欢迎回来，Mr.T先生</h3>
			<p>
				<i class="fa fa-dashboard"></i>2017-10-14
			</p>
		</div>
		<div>
			<ul class="breadcrumb">
				<li><i class="fa fa-home fa-lg"></i></li>
				<li><a href="#">App管理</a></li>
			</ul>
		</div>
	</div>
	<div class="row">

		<div class="x_panel">

			<div class="x_title">
				<h3>APP基础信息</h3>
				<div class="clearfix"></div>
			</div>
			<div class="x_content1">
				<form class="form-horizontal form-label-left">
					<input type="hidden" name="id" value="${appInfo.id}">
					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="name">软件名称 <span class="required">*</span>
						</label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<input class="form-control col-md-7 col-xs-12"
								value="${appInfo.softwareName}" type="text" readonly="readonly">
						</div>
					</div>
					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="name">APK名称 <span class="required">*</span>
						</label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<input type="text" class="form-control col-md-7 col-xs-12"
								value="${appInfo.APKName}" readonly="readonly">
						</div>
					</div>

					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="name">支持ROM <span class="required">*</span>
						</label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<input class="form-control col-md-7 col-xs-12"
								value="${appInfo.supportROM}" type="text" readonly="readonly">
						</div>
					</div>
					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="name">界面语言 <span class="required">*</span>
						</label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<input class="form-control col-md-7 col-xs-12"
								readonly="readonly" value="${appInfo.interfaceLanguage}"
								type="text">
						</div>
					</div>
					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="number">软件大小 <span class="required">*</span>
						</label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<input type="text" value="${appInfo.softwareSize}"
								class="form-control col-md-7 col-xs-12" readonly="readonly">
						</div>
					</div>

					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="number">下载次数 <span class="required">*</span>
						</label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<input type="text" value="${appInfo.downloads}"
								class="form-control col-md-7 col-xs-12" readonly="readonly">
						</div>
					</div>

					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="select">所属平台 <span class="required">*</span></label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<input type="text" class="form-control col-md-7 col-xs-12"
								value="${appInfo.flatformName}" readonly="readonly">

						</div>
					</div>
					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="select">所属分类 <span class="required">*</span></label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<input type="text" class="form-control col-md-7 col-xs-12"
								value="${appInfo.categoryLevel1Name} --> ${appInfo.categoryLevel2Name} --> ${appInfo.categoryLevel3Name}"
								readonly="readonly">
						</div>
					</div>
					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="name">APP状态 <span class="required">*</span>
						</label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<input type="text" class="form-control col-md-7 col-xs-12"
								value="${appInfo.statusName}" readonly="readonly">
						</div>
					</div>
					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="textarea">应用简介 <span class="required">*</span>
						</label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<textarea class="form-control col-md-7 col-xs-12"
								readonly="readonly"> 
              ${appInfo.appInfo}</textarea>
						</div>
					</div>
					<div class="item form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12"
							for="name">LOGO图片 <span class="required">*</span>
						</label>
						<div class="col-md-6 col-sm-6 col-xs-12">
							<c:choose>
								<c:when
									test="${appInfo.logoPicPath == null || appInfo.logoPicPath == ''}">
												暂无
											</c:when>
								<c:otherwise>
									<img src="${appInfo.logoPicPath }?m=1" width="100px;" />
								</c:otherwise>
							</c:choose>
						</div>
					</div>
				</form>
			</div>
			<div class="clearfix"></div>
			<div class="x_title">
				<h3>历史版本列表</h3>
				<ul class="nav navbar-right panel_toolbox">
					
					</li>
				</ul>
				<div class="clearfix"></div>
			</div>
			<div class="x_content" style="display: block;">
				<br>
				<div id="datatable-responsive_wrapper"
					class="dataTables_wrapper form-inline dt-bootstrap no-footer">
					<div class="row">
						<div class="col-sm-12">
							<table id="datatable-responsive"
								class="table table-striped table-bordered dt-responsive nowrap dataTable no-footer dtr-inline collapsed"
								cellspacing="0" width="100%" role="grid"
								aria-describedby="datatable-responsive_info"
								style="width: 100%;">
								<thead>
									<tr role="row">
										<th class="sorting_asc" tabindex="0"
											aria-controls="datatable-responsive" rowspan="1" colspan="1"
											style="width: 70px;"
											aria-label="First name: activate to sort column descending"
											aria-sort="ascending">软件名称</th>
										<th class="sorting" tabindex="0"
											aria-controls="datatable-responsive" rowspan="1" colspan="1"
											style="width: 10px;"
											aria-label="Last name: activate to sort column ascending">
											版本号</th>
										<th class="sorting" tabindex="0"
											aria-controls="datatable-responsive" rowspan="1" colspan="1"
											style="width: 90px;"
											aria-label="Last name: activate to sort column ascending">
											版本大小(单位:M)</th>
										<th class="sorting" tabindex="0"
											aria-controls="datatable-responsive" rowspan="1" colspan="1"
											style="width: 50px;"
											aria-label="Last name: activate to sort column ascending">
											发布状态</th>
										<th class="sorting" tabindex="0"
											aria-controls="datatable-responsive" rowspan="1" colspan="1"
											style="width: 50px;"
											aria-label="Last name: activate to sort column ascending">
											APK文件下载</th>
										<th class="sorting" tabindex="0"
											aria-controls="datatable-responsive" rowspan="1" colspan="1"
											style="width: 50px;"
											aria-label="Last name: activate to sort column ascending">
											最新更新时间</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach var="appVersion" items="${appVersionList }"
										varStatus="status">
										<tr role="row" class="odd">
											<td tabindex="0" class="sorting_1">${appVersion.appName}</td>
											<td>${appVersion.versionNo }</td>
											<td>${appVersion.versionSize }</td>
											<td>${appVersion.publishStatusName }</td>
											<td><a href="${appVersion.downloadLink }">${appVersion.apkFileName
													}</a></td>
											<td><fmt:formatDate value="${appVersion.modifyDate }"
													pattern="yyyy-MM-dd" /></td>
										</tr>
									</c:forEach>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-md-6 col-md-offset-3">
					<button type="button" class="btn btn-primary" id="back">返回</button>
				</div>
			</div>
			<div class="clearfix"></div>
			<br />
			<br />
		</div>
	</div>
	

	</body>

	</html>